package com.ktjiaoyu.crm.service;

import com.ktjiaoyu.crm.UserRepository;
import com.ktjiaoyu.crm.pojo.User;
public class UserService {
    private UserRepository userRepository;
//    @Cacheable(value = "user",keyGenerator = "keyGenerator")
    public User getUser(Long usrid){
        //查询数据库
        return userRepository.findById(usrid).get();
    }
}
